﻿namespace Hydrogen.ULib.UINavigation
{
    /// <summary>
    /// 导航节控制器
    /// </summary>
    public interface IUINavHandle
    {
        /// <summary>
        /// 移动导航事件
        /// </summary>
        /// <param name="arrow">移动方向</param>
        IUINavSelectable Move(Arrow arrow);
        /// <summary>
        /// 触发确认键
        /// </summary>
        void Submit();
        /// <summary>
        /// 触发取消键
        /// </summary>
        void Cancel();

        /// <summary>
        /// 导航控制器失去控制权，被暂停了
        /// </summary>
        /// <param name="child">控制权转移到这个子组</param>
        void OnPaused(IUINavHandle child);
        /// <summary>
        /// 导航控制器恢复控制权
        /// </summary>
        void OnResumed();
    }
}
